package com.kangye.demo.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

/**
 * @author 卡七
 * @title: admin
 * @projectName CaiMinDemo
 * @description: TODO
 * @date 2021/9/149:09
 * 管理员实体类
 */

//get,set方法,有参无参构造
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("gly")
public class Admin {

    private long id;

    private String username;

    private String password;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
